package cn.qidd.keep.product.model.product;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UpdateProductRequest {

    @NotBlank(message = "ID不能为空")
    private String id;
    @ApiModelProperty("产品名称")
    @NotBlank(message = "产品名称不能为空")
    private String productName;
    @ApiModelProperty("产品内容")
    @NotBlank(message = "产品内容不能为空")
    private String productContent;
    @ApiModelProperty("产品价格")
    @NotNull(message = "产品价格不能为空")
    private Double productPrice;
    @ApiModelProperty("备注")
    private String remark;
}
